home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 July
/
EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso
/
earcd
/
phase5
/
ppcrelease
/
examples
/
msg2oldppc.s
< prev
next >
Wrap
Text File
|
1998-02-21
|
3KB
|
169 lines
# GNU C 2.7.2.1
# -O2 -fdefer-pop -fomit-frame-pointer -fcse-follow-jumps -fcse-skip-blocks
# -fexpensive-optimizations -fthread-jumps -fstrength-reduce -fpeephole
# -fforce-mem -ffunction-cse -finline -fcaller-saves -fpcc-struct-return
# -frerun-cse-after-loop -fschedule-insns -fschedule-insns2 -fcommon
# -fgnu-linker -mpowerpc -mnew-mnemonics
.file "Msg2oldPPC.c"
gcc2_compiled.:
.section .rodata
.align 2
.LC0:
.string "PPC port"
.align 2
.LC1:
.string "M68k port"
.align 2
.LC2:
.string "Text sent by PPC processor\n"
.section ".text"
.align 2
.globl main
.type main,@function
.long 0x406c
main:
stwu 1,-112(1)
mflr 0
stw 26,88(1)
stw 27,92(1)
stw 28,96(1)
stw 29,100(1)
stw 30,104(1)
stw 31,108(1)
stw 0,116(1)
lis 30,0x8002
ori 30,30,16384
stw 30,8(1)
addis 9,0,.LC0@ha
addi 9,9,.LC0@l
stw 9,12(1)
li 26,0
stw 26,16(1)
addi 3,1,8
bl PPCCreatePort
mr. 27,3
bc 12,2,.L20
mr 3,27
bl PPCWaitPort
mr 3,27
bl PPCGetMessage
mr. 3,3
bc 12,2,.L4
bl PPCReplyMessage
.L4:
li 3,28
li 4,1
bl PPCAllocVec
mr. 31,3
bc 12,2,.L17
stw 26,8(1)
addi 3,1,8
bl PPCCreatePort
mr. 29,3
bc 12,2,.L15
mr 3,29
li 4,28
bl PPCCreateMessage
mr. 28,3
bc 12,2,.L12
stw 30,8(1)
addis 9,0,.LC1@ha
addi 9,9,.LC1@l
stw 9,12(1)
stw 26,16(1)
.L8:
addi 3,1,8
bl PPCObtainPort
mr. 30,3
bc 12,2,.L8
mr 3,30
mr 4,28
lis 7,0x8765
ori 7,7,17185
addis 9,0,.LC2@ha
addi 11,9,.LC2@l
mr 5,31
li 6,28
lwz 0,.LC2@l(9)
lwz 9,4(11)
lwz 10,8(11)
lwz 8,12(11)
stw 0,0(31)
stw 9,4(31)
stw 10,8(31)
stw 8,12(31)
lwz 0,16(11)
lwz 9,20(11)
lwz 11,24(11)
stw 0,16(31)
stw 9,20(31)
stw 11,24(31)
bl PPCSendMessage
mr 3,29
bl PPCWaitPort
mr 3,30
bl PPCReleasePort
mr 3,28
bl PPCDeleteMessage
.L12:
mr 3,29
bl PPCDeletePort
extsh 3,3
cmpwi 1,3,0
bc 12,6,.L12
.L15:
mr 3,31
bl PPCFreeVec
.L17:
mr 3,27
bl PPCDeletePort
extsh 3,3
cmpwi 1,3,0
bc 12,6,.L17
.L20:
lwz 0,116(1)
mtlr 0
lwz 26,88(1)
lwz 27,92(1)
lwz 28,96(1)
lwz 29,100(1)
lwz 30,104(1)
lwz 31,108(1)
addi 1,1,112
blr
.Lfe1:
.size main,.Lfe1-main
.align 2
.globl printf
.type printf,@function
.long 0x404c
printf:
stwu 1,-32(1)
mflr 0
stw 28,16(1)
stw 29,20(1)
stw 30,24(1)
stw 31,28(1)
stw 0,36(1)
mr 28,3
addis 9,0,MyFile@ha
lwz 29,MyFile@l(9)
bl strlen
mr 5,3
mr 4,28
mr 3,29
bl PPCWrite
lwz 0,36(1)
mtlr 0
lwz 28,16(1)
lwz 29,20(1)
lwz 30,24(1)
lwz 31,28(1)
addi 1,1,32
blr
.Lfe2:
.size printf,.Lfe2-printf
.comm MyFile,4,4
.ident "GCC: (GNU) 2.7.2.1"